package com.czy.seed.mvc.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;

/**
 * @Author: liuyun
 * Created by liuyun  9:31 2018/1/5.
 */


@Configuration
@ConfigurationProperties(prefix = "system", ignoreUnknownFields = false)
@PropertySource("classpath:config/system.properties")
@Component
public class SystemProperties {

    //二次询价开关

    private String secondInquirySwitch;

    //自主添加商品信息生成采购单开关

    private String  addYourselfSwitch;

    //是否开启数据库备份的开关

    private String databaseBackup;

    //数据库备份的地址

    private String backupAddress;

    private String smtpHost;

    private String smtpPort;

    private String mailFrom;

    private String password;

    private String subject;

    private String messageType;

    private String account;

    private String NotePwd;

    private String mobile;

    private String content;

    private String sendTime;

    private String devicePhone;

    private long total;

    private String startTime;

    private String overTime;

    private String url;

    private boolean flag;


    public String getDatabaseBackup() {
        return databaseBackup;
    }

    public void setDatabaseBackup(String databaseBackup) {
        this.databaseBackup = databaseBackup;
    }

    public String getBackupAddress() {
        return backupAddress;
    }

    public void setBackupAddress(String backupAddress) {
        this.backupAddress = backupAddress;
    }

    public String getSecondInquirySwitch() {
        return secondInquirySwitch;
    }

    public void setSecondInquirySwitch(String secondInquirySwitch) {
        this.secondInquirySwitch = secondInquirySwitch;
    }

    public String getAddYourselfSwitch() {
        return addYourselfSwitch;
    }

    public void setAddYourselfSwitch(String addYourselfSwitch) {
        this.addYourselfSwitch = addYourselfSwitch;
    }

    public boolean isFlag() {
        return flag;
    }

    public String getSmtpHost() {
        return smtpHost;
    }

    public void setSmtpHost(String smtpHost) {
        this.smtpHost = smtpHost;
    }

    public String getSmtpPort() {
        return smtpPort;
    }

    public void setSmtpPort(String smtpPort) {
        this.smtpPort = smtpPort;
    }

    public String getMailFrom() {
        return mailFrom;
    }

    public void setMailFrom(String mailFrom) {
        this.mailFrom = mailFrom;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getNotePwd() {
        return NotePwd;
    }

    public void setNotePwd(String notePwd) {
        NotePwd = notePwd;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getDevicePhone() {
        return devicePhone;
    }

    public void setDevicePhone(String devicePhone) {
        this.devicePhone = devicePhone;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getOverTime() {
        return overTime;
    }

    public void setOverTime(String overTime) {
        this.overTime = overTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean getFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
